package com.day23.Stream;

import java.util.*;
import java.util.stream.Stream;

public class StreamDemo2 {
    public static void main(String[] args) {
        List<String> list=new ArrayList<String>();
        Stream<String> stream=list.stream();
        Set<String>set =new HashSet<String>();
        Stream<String> stream1=set.stream();
        Map<String,Integer> map=new HashMap<String ,Integer>();
        Stream<String> keyStream=map.keySet().stream();
        Stream<Integer> valueStream=map.values().stream();
        Stream<Map.Entry<String,Integer>> entryStream=map.entrySet().stream();
        String[] strArray={"hello","world","java"};
        Stream<String> strArrayStream=Stream.of(strArray);
        Stream<String> strArrayStream2=Stream.of("hello","world","java");
        Stream<Integer> intStream=Stream.of(10,20,30);

    }
}
